package biz.obake.team.touchprotector.d;

import android.content.SharedPreferences;
import biz.obake.team.touchprotector.g.c;

public abstract class b implements a {

    /* renamed from: b  reason: collision with root package name */
    private final SharedPreferences.OnSharedPreferenceChangeListener f1550b = new a(this);

    /* renamed from: c  reason: collision with root package name */
    private final c.b f1551c = new C0062b(this);

    static final class a implements SharedPreferences.OnSharedPreferenceChangeListener {

        /* renamed from: b  reason: collision with root package name */
        final /* synthetic */ b f1552b;

        a(b bVar) {
            this.f1552b = bVar;
        }

        public final void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String str) {
            this.f1552b.b(str);
        }
    }

    /* renamed from: biz.obake.team.touchprotector.d.b$b  reason: collision with other inner class name */
    static final class C0062b implements c.b {

        /* renamed from: b  reason: collision with root package name */
        final /* synthetic */ b f1553b;

        C0062b(b bVar) {
            this.f1553b = bVar;
        }

        public final void onRamPrefsChanged(String str) {
            this.f1553b.b(str);
        }
    }

    /* access modifiers changed from: protected */
    public abstract void b(String str);

    public void start() {
        biz.obake.team.touchprotector.g.a.i().registerOnSharedPreferenceChangeListener(this.f1550b);
        c.e(this.f1551c);
    }

    public void stop() {
        biz.obake.team.touchprotector.g.a.i().unregisterOnSharedPreferenceChangeListener(this.f1550b);
        c.h(this.f1551c);
    }
}
